bitkeeper revision 1.117 (3e6bd6a4rGkhgVtHUdxAdVKFXliA9g)
authorkaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk>
Mon, 10 Mar 2003 00:04:52 +0000 (00:04 +0000)
committerkaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk>
Mon, 10 Mar 2003 00:04:52 +0000 (00:04 +0000)
xen_block.c:
  Small fix.

xen/drivers/block/xen_block.c

index 4f30cdf801c9a17f93c1a714450703828c00d1a8..43b85fe6d319b08ad772434602d5f844cff9107e 100644 (file)
@@ -207,12 +207,12 @@ static void end_block_io_op(struct buffer_head *bh, int uptodate)
         pending_req->status = 1;
     }
 #ifdef TEST_READ_VALIDITY
-    else
+    else if ( pending_req->operation == READ )
     {
         unsigned long *buff = map_domain_mem(virt_to_phys(bh->b_data));
         if ( (buff[  0] == 0xdeadbeef) &&
              (buff[127] == 0xdeadbeef) )
-            printk("A really fucked buffer at %ld\n", bh->b_rsector);
+            printk("An unmodified buffer at sector %ld\n", bh->b_rsector);
         unmap_domain_mem(buff);
     }
 #endif